import { Drash } from '../mod.ts';

import { StudentListService } from './../service/mod.ts';
import { A } from "../annotation/a.ts";
@A()
export class ST_APIResource extends Drash.Http.Resource {
    static paths = ["/api"];
    public GET() {
        const studentListService = new StudentListService();
        const list_ = studentListService.getStudentList();
        console.log({ list_ });
        // @ts-ignore
        console.log({ isA: studentListService.isA });
        // @ts-ignore
        console.log({ isAThis: this.isA });
        const name = 'jiangkun';
        const list = [
            {
                name: 'a',
                age: 12
            },
            {
                name: 'a1',
                age: 10
            },
        ];
        this.response.body = "api";
        return this.response;
    }
}